package com.cdvtc.forum_system.model;

import java.util.Date;

public class Post {
    private int post_id;
    private int board_id;
    private int user_id;
    private String post_title;
    private String post_content;
    private Date post_time;
    private int read_count;
    private int p_like_count;
    private int p_dislike_count;
    private int p_is_top;

    public int getPost_id() {
        return post_id;
    }

    public void setPost_id(int post_id) {
        this.post_id = post_id;
    }

    public int getBoard_id() {
        return board_id;
    }

    public void setBoard_id(int board_id) {
        this.board_id = board_id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public String getPost_title() {
        return post_title;
    }

    public void setPost_title(String post_title) {
        this.post_title = post_title;
    }

    public String getPost_content() {
        return post_content;
    }

    public void setPost_content(String post_content) {
        this.post_content = post_content;
    }

    public Date getPost_time() {
        return post_time;
    }

    public void setPost_time(Date post_time) {
        this.post_time = post_time;
    }

    public int getRead_count() {
        return read_count;
    }

    public void setRead_count(int read_count) {
        this.read_count = read_count;
    }

    public int getP_like_count() {
        return p_like_count;
    }

    public void setP_like_count(int p_like_count) {
        this.p_like_count = p_like_count;
    }

    public int getP_dislike_count() {
        return p_dislike_count;
    }

    public void setP_dislike_count(int p_dislike_count) {
        this.p_dislike_count = p_dislike_count;
    }

    public int getP_is_top() {
        return p_is_top;
    }

    public void setP_is_top(int p_is_top) {
        this.p_is_top = p_is_top;
    }

    @Override
    public String toString() {
        return "Post{" +
                "post_id=" + post_id +
                ", board_id=" + board_id +
                ", user_id=" + user_id +
                ", post_title='" + post_title + '\'' +
                ", post_content='" + post_content + '\'' +
                ", post_time=" + post_time +
                ", read_count=" + read_count +
                ", p_like_count=" + p_like_count +
                ", p_dislike_count=" + p_dislike_count +
                ", p_is_top=" + p_is_top +
                '}';
    }
}
